package com.dynamixsoftware.printershare.smb.util;

public class Encdec
{
  public static short dec_uint16be(byte[] paramArrayOfByte, int paramInt)
  {
    return (short)((0xFF & paramArrayOfByte[paramInt]) << 8 | 0xFF & paramArrayOfByte[(paramInt + 1)]);
  }
  
  public static short dec_uint16le(byte[] paramArrayOfByte, int paramInt)
  {
    return (short)(0xFF & paramArrayOfByte[paramInt] | (0xFF & paramArrayOfByte[(paramInt + 1)]) << 8);
  }
  
  public static int dec_uint32le(byte[] paramArrayOfByte, int paramInt)
  {
    return 0xFF & paramArrayOfByte[paramInt] | (0xFF & paramArrayOfByte[(paramInt + 1)]) << 8 | (0xFF & paramArrayOfByte[(paramInt + 2)]) << 16 | (0xFF & paramArrayOfByte[(paramInt + 3)]) << 24;
  }
  
  public static int enc_uint16le(short paramShort, byte[] paramArrayOfByte, int paramInt)
  {
    int i = paramInt + 1;
    paramArrayOfByte[paramInt] = ((byte)(paramShort & 0xFF));
    paramArrayOfByte[i] = ((byte)(0xFF & paramShort >> 8));
    return 2;
  }
  
  public static int enc_uint32be(int paramInt1, byte[] paramArrayOfByte, int paramInt2)
  {
    int i = paramInt2 + 1;
    paramArrayOfByte[paramInt2] = ((byte)(0xFF & paramInt1 >> 24));
    int j = i + 1;
    paramArrayOfByte[i] = ((byte)(0xFF & paramInt1 >> 16));
    int k = j + 1;
    paramArrayOfByte[j] = ((byte)(0xFF & paramInt1 >> 8));
    paramArrayOfByte[k] = ((byte)(paramInt1 & 0xFF));
    return 4;
  }
  
  public static int enc_uint32le(int paramInt1, byte[] paramArrayOfByte, int paramInt2)
  {
    int i = paramInt2 + 1;
    paramArrayOfByte[paramInt2] = ((byte)(paramInt1 & 0xFF));
    int j = i + 1;
    paramArrayOfByte[i] = ((byte)(0xFF & paramInt1 >> 8));
    int k = j + 1;
    paramArrayOfByte[j] = ((byte)(0xFF & paramInt1 >> 16));
    paramArrayOfByte[k] = ((byte)(0xFF & paramInt1 >> 24));
    return 4;
  }
  
  public static int enc_uint64le(long paramLong, byte[] paramArrayOfByte, int paramInt)
  {
    enc_uint32le((int)(paramLong & 0xFFFFFFFF), paramArrayOfByte, paramInt);
    enc_uint32le((int)(0xFFFFFFFF & paramLong >> 32), paramArrayOfByte, paramInt + 4);
    return 8;
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.smb.util.Encdec
 * JD-Core Version:    0.7.0.1
 */